#include "Shape.h"
#include <gl\glut.h>


Shape::Shape(void)
{
}

Shape::Shape( int shape,int mode /*= WIRE*/ )
{
	m_shape = shape;
	m_mode = mode;
}

Shape::~Shape(void)
{
}

void Shape::render()
{
	switch(m_shape){
	case CUBE:
		if(m_mode == WIRE)
			glutWireCube(1.0);
		else
			glutSolidCube(1.0);
		break;
	case SPHERE:
		if(m_mode == WIRE)
			glutWireSphere(1.0,10,10);
		else
			glutSolidSphere(1.0,10,10);
		break;
	default:
		break;
	}
}
